/**
 * 
 */
package com.wixc.mapper;

import java.sql.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wixc.entity.NewBean;

/**
 * @author weichuanxi
 * @date 2016年4月12日
 */
public interface NewMapper {
	void save(NewBean newBean);
	List<NewBean>selectByTypeId_Top7(@Param(value = "typeid") int id );
	List<NewBean>selectByTypeIdAjax(@Param(value = "page") int page,@Param(value = "typeid") int id );
	List<NewBean>selectById(int id);
	List<NewBean> selectByTypeId_Top(int id);
	List<NewBean> selectEveryTypeTop10();
	List<NewBean> selectByTypeId_Page(@Param(value = "typeid")int typeid,@Param(value = "page") int page);
	List<NewBean> selectByTypeId_sdate_edate(@Param(value = "typeid")int typeid,@Param(value = "page") int page, @Param(value = "sdate")String sdate, @Param(value = "edate")String edate);
	void batchDelete(@Param(value = "id")int id);
	void setHotNew(@Param(value = "id")int parseInt);
	List<NewBean> selectCircle();
	List<NewBean> selectByPage(@Param(value = "page") int page);
	List<NewBean> selectByDate(@Param(value = "date") String  string);
}
